<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">
<html>
<head>
<title>Configuring the Library</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="generator" content="Doc-O-Matic" />
    <meta http-equiv="Content-Style-Type" content="text/css" />
    <link rel="STYLESHEET" href="default.css" type="text/css" />

<script type="text/javascript" src="scripts.js"></script>
</head>
<body class="Element700" onload="onBodyLoadEx('frames.html', 'topic', '00755.html');" onmousedown="onBodyMouseDown();">

<!-- Begin Popups -->

<!-- End Popups -->

<!-- Begin Page Header -->
<div class="Element710" id="areafixed">
<div class="Element94">
<a href="01259.html" target="topic">System Service Libraries Help</a> &gt; <a href="00759.html" target="topic">Time System Service Library Help</a> &gt; <a href="00755.html" target="topic">Configuring the Library</a></div>
<div class="Element92">
<table width="100%" cellspacing="0" cellpadding="0">
<tr><td width="25%">
<div class="Element1">
MPLAB Harmony Core Help</div>
</td><td width="25%">
<div class="Element2">
<a href="contents.html" target="tocidx">Contents</a> | <a href="00007.html" target="topic">Home</a></div>
</td><td width="25%">
<div class="Element90">
<a href="00761.html" target="topic">Previous</a> | <a href="00759.html" target="topic">Up</a> | <a href="00753.html" target="topic">Next</a></div>
</td><td width="25%">
<div class="Element96">
<a href="mailto:docerrors@microchip.com&subject=MPLAB Harmony Documentation Feedback (Topic ID: SYS TIME Configuring the Library - Driver Topic Title: Configuring the Library)&body=Thank you for your feedback! Please include a description of your feedback, and indicate whether you are reporting an an error in the documentation or an enhancement.">Documentation Feedback</a><br> <a href="http://support.microchip.com" target="_blank">Microchip Support</a></div>
</td></tr></table><div class="Element5">
Configuring the Library</div>
</div>
</div>

<!-- End Page Header -->

<!-- Begin Client Area -->
<div class="Element720" id="areascroll">
<div class="Element721">

<!-- Begin Page Content -->
<a name="PageContent"></a><div class="Element58">
<a name="4465736372697074696F6E"></a><div class="Element11">
<div class="Element10">
<p class="Element10">
The Time System Service library should be configured through the MHC. The following figure shows the MHC configuration window for configuring the Time System Service and a brief description of various configuration options.&nbsp;</p>
<p class="Element10">
Depending on the timer PLIB connected to the Time System Service, the Time System Service provides options to setup the Time System Service in either Tick-less mode or Tick-based mode. The Time System Service shows both Tick-less and Tick-based options for the timers that support for both compare and period modes. The Time System Service shows only Tick-less mode for timers that only support compare mode. The Time System Service shows only Tick-based mode for timers that support only period mode.&nbsp;</p>
<p class="Element10">
&nbsp;</p><p class="Element10" style="text-align: center;">
<img src="Sys_time_tickless.png" border="0" alt="" title="">&nbsp;</p>
<p class="Element10" style="text-align: center;">
Time System Service configured in Tick-less mode&nbsp;</p>
<p class="Element10" style="text-align: center;">
&nbsp;</p>
<p class="Element10" style="text-align: center;">
<img src="Sys_time_tickbased.png" border="0" alt="" title="">&nbsp;</p>
<p class="Element10" style="text-align: center;">
Time System Service configured in Tick-based mode</p><p class="Element10">
&nbsp;</p>
<div class="Element15">
Configuration Options:</div>

<ul class="Element630">
<li class="Element600"><strong>PLIB Used</strong>
<ul class="Element631">
<li class="Element601">Indicates the hardware Timer Peripheral Library instance used by the Time System Service</li>
</ul></li>
<li class="Element600"><strong>Number of Clients</strong>
<ul class="Element631">
<li class="Element601">Indicates the maximum number of alarm/delay requests that can be active at any given time.</li>
</ul></li>
<li class="Element600"><strong>Operating Mode</strong>
<ul class="Element631">
<li class="Element601">Indicates the operating mode based on the timer PLIB it is connected to - TICK BASED or/and TICKLESS</li>
</ul></li>
<li class="Element600"><strong>Tick Rate (ms)</strong>
<ul class="Element631">
<li class="Element601">Indicates the tick rate when the Time System Service is configured in TICK BASED mode</li>
</ul></li>
</ul><p class="Element10">
&nbsp;</p>
<p class="Element10">
The hardware Timer Peripheral library is automatically configured for the correct mode of operation when it is connected to the Time System Service as shown in the below example snapshots for TC instance 0. </p><p class="Element10" style="text-align: center;">
<img src="plib_tickless.png" border="0" alt="" title="">&nbsp;</p>
<p class="Element10" style="text-align: center;">
Timer PLIB TC0 automatically configured by Time System Service which is configured for tick-less mode&nbsp;</p>
<p class="Element10" style="text-align: center;">
&nbsp;</p>
<p class="Element10" style="text-align: center;">
<img src="plib_tickbased.png" border="0" alt="" title="">&nbsp;</p>
<p class="Element10" style="text-align: center;">
Timer PLIB TC0 automatically configured by Time System Service which is configured for tick-based mode</p><p class="Element10">
&nbsp;</p>
<p class="Element10" style="text-align: center;">
&nbsp;</p>
<p class="Element10">
&nbsp;</p>
<p class="Element10" style="text-align: center;">
&nbsp;</p>
</div>
</div>
</div>
<!-- End Page Content -->

<!-- Begin Page Footer -->
<div class="Element95">
<a href="01259.html" target="topic">System Service Libraries Help</a> &gt; <a href="00759.html" target="topic">Time System Service Library Help</a> &gt; <a href="00755.html" target="topic">Configuring the Library</a></div>
<div class="Element93">
<table width="100%" cellspacing="0" cellpadding="0">
<tr><td width="25%">
<div class="Element3">
MPLAB Harmony Core Help</div>
</td><td width="25%">
<div class="Element4">
<a href="contents.html" target="tocidx">Contents</a> | <a href="00007.html" target="topic">Home</a></div>
</td><td width="25%">
<div class="Element91">
<a href="00761.html" target="topic">Previous</a> | <a href="00759.html" target="topic">Up</a> | <a href="00753.html" target="topic">Next</a></div>
</td><td width="25%">
<div class="Element97">
<a href="mailto:docerrors@microchip.com&subject=MPLAB Harmony Documentation Feedback (Topic ID: SYS TIME Configuring the Library - Driver Topic Title: Configuring the Library)&body=Thank you for your feedback! Please include a description of your feedback, and indicate whether you are reporting an an error in the documentation or an enhancement.">Documentation Feedback</a><br> <a href="http://support.microchip.com" target="_blank">Microchip Support</a></div>
</td></tr></table></div>

<!-- End Page Footer -->
</div>
</div>

<!-- End Client Area -->
</body></html>